﻿using BPMN.Application.Contracts.DTO.Defective;
using BPMN.Application.Contracts.DTO.Response;
using BPMN.Domain.Entity.DefectiveModel;
using BPMN.DomianShare;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BPMN.Application.IService
{
    public interface IDefectiveService: IScoped
    {
        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="defective"></param>
        /// <returns></returns>
        Task<int> AddDefective(Defective defective);
        


        //获取不良品相所有数据
        Task<ResultResponseDto<List<DefectiveDto>>> responseDto(string BianHoa, string DefName);



        /// <summary>
        /// 批量删除
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        Task<ResultResponseDto<int>> DeleteDefective(List<int> ids);



        /// <summary>
        /// 反填
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<Defective> DefectiveFanTian(int id);


        //修改
        Task<ResultResponseDto<int>> UpdDefective(Defective defective);
    }
}
